<?php
/**  
  * 标签云 
  *  
  * @package custom  
  */ 
$this->need('header.php'); ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php $this->options->themeUrl('css/link.css'); ?>">
<article>
	<section id="tags">
		<div id="post-tag">
			<div class="title"><?php _e('标签云'); ?></div>
			<div class="tags">
				<?php
          Typecho_Widget::widget('Widget_Metas_Tag_Cloud')->to($tags);
          if($tags->have()):
            while ($tags->next()): ?>
              <a style="color:rgb(<?php echo(mt_rand(0,255)); ?>,<?php echo(mt_rand(0,255)); ?>,<?php echo(mt_rand(0,255)); ?>)" href="<?php $tags->permalink();?>" title="有<?php $tags->count(); ?>篇文章使用<?php $tags->name(); ?>标签"><?php $tags->name(); ?></a>
            <?php endwhile; ?>
          <?php endif; ?>  
			</div>
		</div>
		<div class="clear"></div>
	</section><!-- /.post -->
</article>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>